/**
 * 社区模块
 */
import request from '@/utils/request'

/**关注模块start */

/**
 * 获取粉丝列表--分页
 * @param {*} params 
 * @returns 
 */
export const selectFansList = params => { 
    return request({ 
        method:'get',
        url:'/community/selectFansList',
        params
    })
}

/**
 * 获取关注者列表--分页
 * @param {*} params 
 * @returns 
 */
export const selectIdolList = params => { 
    return request({ 
        method:'get',
        url:'/community/selectIdolList',
        params
    })
}

/**
 * 获取该用户的关注者列表
 */
export const getIdolList =params => { 
    return request({ 
        method:'get',
        url:'/community/getIdolList',
        params
    })
}

/**
 * 获取指定用户的动态总数
 * @param {*} data 
 * @returns 
 */
export const getUsersActionCount = data => { 
    return request({ 
        method:'post',
        url:'/community/getUsersActionCount',
        data
    })
}

/**
 * 获取指定用户发布的动态信息及某一用户的点赞情况
 * @param {*} data 
 * @returns 
 */
export const getUsersAction = data => { 
    return request({ 
        method:'post',
        url:'/community/getUsersAction',
        data
    })
}
/**关注模块end */

/** 点赞start */
export const thumbUp = data => { 
    return request({ 
        method:'post',
        url:'/community/thumbUp',
        data
    })
}

export const cancleThumbUp = data => { 
    return request({ 
        method:'post',
        url:'/community/cancleThumbUp',
        data
    })
}

/**点赞end */


/**
 * 获取推荐页的动态信息
 * @param {*} data 
 */
export const getRecommendAction = data => { 
    return request({ 
        method:'post',
        url:'/community/getRecommendAction',
        data
    })
}

/**
 * 关注某用户
 * @param {*} data 
 * @returns 
 */
export const payAttention = data => { 
    return request({ 
        method:'post',
        url:'/community/payAttention',
        data
    })
}

/**
 * 取消关注
 * @param {*} data 
 * @returns 
 */
export const canclePayAttention = data => { 
    return request({ 
        method:'post',
        url:'/community/canclePayAttention',
        data
    })
}



/**进入详情页 */
export const getDetailOfAction = data => { 
    return request({ 
        method:'post',
        url:'/community/getDetailOfAction',
        data
    })
}

/**
 * 获取点赞消息
 * @param {*} data 
 * @returns 
 */
export const getUserThumbInfo = data => { 
    return request({ 
        method:'post',
        url:'/community/getUserThumbInfo',
        data
    })
}

/**
 * 发布动态
 * @param {*} data 
 * @returns 
 */
export const publishAction = data => { 
    return request({ 
        method:'post',
        url:'/community/publishAction',
        data
    })
}